package com.sansui.FilterChiam;



public abstract class FilterRegular {

	public abstract String filterRegular(String content) ;
	
	
	protected boolean isMatchHead(String line) {
		String regularExpressionStr = "\\s{1,10000}<div id=\"ArticleCnt\">";
		if(line.matches(regularExpressionStr)){
			return true;
		} else {
			return false;
		}
	}
	

	protected boolean isMatchEnd(String line) {
		String regularExpressionStr = ".{1,10000}<script src=\'\'></script><script src=\'\'></script>";
		if(line.matches(regularExpressionStr)){
			return true;
		} else {
			return false;
		}
	}

	protected boolean isMatchPar(String line) {
		String regularExpressionStr = ".{0,10000}<P>.{1,10000}</P>.*+";
		if(line.matches(regularExpressionStr)){
			return true;
		} else {
			return false;
		}
	}

	protected boolean isMatchParHead(String line) {
		String regularExpressionStr = ".{0,10000}<STRONG>.{1,10000}</STRONG>.*+";
		if(line.matches(regularExpressionStr)){
			return true;
		} else {
			return false;
		}
	}
}
